'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  // 注册
  router.put('/api/sigin',controller.home.sigin)
  // 登录
  router.post('/api/login',controller.home.login)
  // 修改密码
  router.post('/api/password',controller.home.editPassword)
  // 获取数据
  router.get('/api/lists',controller.home.getList)
};
